//
//  TNKindButton.m
//  跑跑快销
//
//  Created by ylife on 14-5-4.
//  Copyright (c) 2014年 ylife. All rights reserved.
//

#import "TNKindButton.h"

@implementation TNKindButton

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}


-(CGRect)titleRectForContentRect:(CGRect)contentRect
{
    contentRect.size.width = self.frame.size.width / 3 * 2;
    return contentRect;
}

-(CGRect)imageRectForContentRect:(CGRect)contentRect
{
    contentRect.origin.x = contentRect.origin.x + self.frame.size.width / 3 * 2;
    contentRect.size.width = self.frame.size.width / 3;
    return contentRect;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
